import request from '@/utils/request'

// 查询提现费率列表
export function listPercentage(query) {
  return request({
    url: '/system/percentage/list',
    method: 'get',
    params: query
  })
}

// 查询提现费率详细
export function getPercentage(id) {
  return request({
    url: '/system/percentage/' + id,
    method: 'get'
  })
}

// 新增提现费率
export function addPercentage(data) {
  return request({
    url: '/system/percentage',
    method: 'post',
    data: data
  })
}

// 修改提现费率
export function updatePercentage(data) {
  return request({
    url: '/system/percentage',
    method: 'put',
    data: data
  })
}

// 删除提现费率
export function delPercentage(id) {
  return request({
    url: '/system/percentage/' + id,
    method: 'delete'
  })
}

// 导出提现费率
export function exportPercentage(query) {
  return request({
    url: '/system/percentage/export',
    method: 'get',
    params: query
  })
}